import java.io.*;

import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

public class Make_dir {
	
	public static void main(String args[]) throws IOException{
		
		String md="C:/Users/amandeep/Google Drive/Framework/Framework";
		//String name="JavaTestDir";
		String XLname="XLfile";
	//	createDir(md);
		//createXLfile(md);
		DeleteDir(md);
		
		
	}
		
		public static void createDir(String dirname){
			boolean sucess=(new File (dirname)).mkdir();
			//System.out.println(sucess+"- is true or fals");
			if(sucess==true){
				System.out.println("The dir has been made at loc :-"+dirname);
			}else{
				System.out.println("The dir has not been made at loc :-"+dirname);
			}}
	  public static void DeleteDir(String dirname){
		  boolean sucess=(new File(dirname).delete());
		  if(sucess==true){
			  System.out.println("The foleder has been delted");
		  }
		  else {
			  System.out.println("Folder not deleted");
		  }
		  
	  }}
	
		